{extend name="public:adminpublic"/}
{block name="admin"}
    <div class="mws-panel grid_8">
  <div class="mws-panel-header">
    <span>
      <i class="icon-table"></i>用户列表</span>
  </div>
  <div class="mws-panel-body no-padding">
    <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
      <form action="/admin/index" method="get">
      <div class="dataTables_filter" id="DataTables_Table_1_filter">
       
        </div>
        </form>
      <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
        <thead>
          <tr role="row">
            <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 100px;">ID</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" style="width: 137px;">用户名</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 124px;">密码</th>
             <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 124px;">邮箱</th>
              <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 124px;">level</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 60px;">操作</th>
          </tr>
        </thead>
        <tbody role="alert" aria-live="polite" aria-relevant="all">
         {foreach name="data2" item="row"}
          <tr class="odd">
            <td class=" ">{$row['id']}</td>
            <td class=" ">{$row['name']}</td>
            <td class=" ">{$row['pass']}</td>
            <td class=" ">{$row['email']}</td>
            <td class=" ">{$row['status']}</td>
            <td class=" "><a href="/adminzz/delete/id/{$row['id']}" class="btn btn-success">删除</a><a href="/adminzz/update/id/{$row['id']}" class="btn btn-info">修改</a></td>
          </tr>
         {/foreach}
        </tbody>
      </table>
      <div class="dataTables_paginate paging_full_numbers" id="pages">
       	{$data2->render()}
      </div>
    </div>
  </div>
</div>
{/block}
{block name="title"}后台首页{/block}